package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.common.R;
import com.example.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 菜品及套餐分类 服务类
 * </p>
 *
 * @author lw
 * @since 2023-01-31
 */
public interface CategoryService extends IService<Category> {

    R<Page> getPage(int page, int pageSize);

    R<String> deleteOne(Long id);

    R<List<Category>> getList(Category category);
}
